Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  


RE: DomParser AND serialize
~Umberto Nongeroson 20.Dec.03 03:06 PM a Web browser
Domino Designer 6.5 All Platforms


I have not read everything you posted, so this might not answer all your questions.

Steps 1 - 4 seem OK to me. You do not need a stream. Notes connects the objects and passes the data along the pipeline that you set up.

If you do write the data to a file for some reason, the size of the file depends on whether all the default values of all the attributes are included.

For example, here is very basic code that exports a document, changes the Subject, and imports it again (creating a new document). To add error-handling, use the Log properties of the processor objects to find out what went wrong.


' set session, db and doc

Dim dxp As NotesDXLExporter
Set dxp = session.CreateDXLExporter(doc)

Dim
par As NotesDOMParser
Set par = session.CreateDOMParser(dxp)
On Event
PostDOMParse From par Call ProcessDOM

Dim dip As NotesDXLImporter
Set dip = session.CreateDXLImporter(par, db)

dxp.Process
End Sub


Sub
ProcessDOM(Source As NotesDOMParser)
Dim
items As NotesDOMNodeList
Set items = Source.Document.GetElementsByTagName("item")

For
i& = 1 To items.NumberOfEntries
Dim item As NotesDOMElementNode
Set item = items.GetItem(i&)
If
item.GetAttribute("name") = "Subject" Then _
item.FirstChild.FirstChild.NodeValue
= "Rhubarb"
Next

Source.Serialize
End Sub




DomParser AND serialize (~Bella Opponely... 19.Dec.03)
. . RE: DomParser AND serialize (~Bella Opponely... 19.Dec.03)
. . dxl -> dom -> serialize() -> dxl (~Bella Opponely... 19.Dec.03)
. . RE: DomParser AND serialize (~Kirk Elreterod... 20.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS